SUBROUTINE SCROLL
*Display a simple form with a scrolling message in the status line* Include the RealWeb definitions
INCLUDE #RW.INCLUDE.DEFS FROM /SYSFILES/REALWEB,BP
* Start the HTML pageCALL RW_START_HTML_PAGE("OFFTEC Training Solutions", "", "", "", "")
CALL RW_PUT("Please check the relevant boxes to indicate which " : ...
"course modules you require")
* Start the HTML form, specifying that the subroutine RESPONSE should* be run when the submit button is clickedCALL RW_START_HTML_FORM("RESPONSE","FORM5","")CALL RW_NEWLINECALL RW_CHECKBOX("module","Word Processing",0,0,"")CALL RW_PUT("Word Processing")CALL RW_NEWLINECALL RW_CHECKBOX("module","Spreadsheets",0,0,"")CALL RW_PUT("Spreadsheets")CALL RW_NEWLINECALL RW_CHECKBOX("module","Databases",0,0,"")CALL RW_PUT("Databases")CALL RW_NEWLINECALL RW_CHECKBOX("module","Web Page Design",0,0,"")CALL RW_PUT("Web Page Design")CALL RW_NEWLINES(2)*Create the reset buttonCALL RW_RESET("CLEAR","Clear Selections","")*Create the submit buttonCALL RW_SUBMIT_BUTTON("Submit Details","")*Complete the formCALL RW_END_FORM*Create the scrolling message
MESSAGE = "OFFTEC Training Solutions - Learn at YOUR pace!"
CALL RW_STATUS_SCROLL(MESSAGE, "", "")* Complete the pageCALL RW_END_PAGE
RETURN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><META NAME="Generator" CONTENT="Reality"><TITLE>OFFTEC Training Solutions</TITLE><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
var timerID = null;
var pause=0;
var clear=0;
var position=0;
var WindowLength=160;
var ScrollText = "";
var Delay=100;
function jsitStatusScroll()
{
var i;
var x;
var message=ScrollText;
x = ((2 * WindowLength)/(message.length));
message2 = message;
for (i=0;i<x;i++) message2 = message2 + " " + message;
window.status=message2.substring(position,position+WindowLength);
if(position++ == (message2.length - WindowLength)) position=0;
if (pause == 0)
timerID=setTimeout('jsitStatusScroll()',Delay);
else if (clear == 1)
window.status = "";
}
ScrollText="OFFTEC Training Solutions - Learn at YOUR pace!"
jsitStatusScroll();
</SCRIPT></HEAD><BODY>
Please check the relevant boxes to indicate which course modules you require
<FORM ACTION="RESPONSE" NAME="FORM5" METHOD="POST"><BR><INPUT TYPE=CHECKBOX NAME="module" VALUE="Word Processing">
Word Processing
<BR><INPUT TYPE=CHECKBOX NAME="module" VALUE="Spreadsheets">
Spreadsheets
<BR><INPUT TYPE=CHECKBOX NAME="module" VALUE="Databases">
Databases
<BR><INPUT TYPE=CHECKBOX NAME="module" VALUE="Web Page Design">
Web Page Design
<BR><BR><INPUT TYPE=RESET NAME="CLEAR" VALUE="Clear Selections"><INPUT TYPE="submit" VALUE="Submit Details"></FORM></BODY></HTML>